﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ExamSystem.Mdeol;
using ExamSystem.BLL;

namespace ExamSystem.ht
{
    public partial class TPager_List : System.Web.UI.Page
    {
        private TpagerBLL tbl = new TpagerBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
           
            if(!Page.IsPostBack)
            {
                string tpid = Request.QueryString["id"];
                if(!string.IsNullOrEmpty(tpid))
                {
                    tbl.delete(int.Parse(tpid));
                    util.FunHelper.LayerAlter(this, "删除成功", "TPager_List.aspx");
                }

                List<Tpager> list =tbl.queryall();
                this.Repeater1.DataSource = list;
                this.Repeater1.DataBind();
                this.lbTotal.InnerText = list.Count+"";
            }
        }
    }
}